package org.aplikator.server.descriptor;

/**
 * Created with IntelliJ IDEA.
 * User: vlahoda
 * Date: 02.04.13
 * Time: 14:49
 * To change this template use File | Settings | File Templates.
 */
public abstract class WidgetDescriptorBase implements Widget {

    private int size = 0;

    @Override
    public int getSize(){
        return size;
    }

    @Override
    public Widget setSize(int size){
        this.size = size;
        return this;
    }



    private String formatPattern;

    @Override
    public Widget setFormatPattern(String formatPattern) {
        this.formatPattern = formatPattern;
        return this;
    }

    @Override
    public String getFormatPattern() {
        return formatPattern;
    }

    private boolean enabled = true;

    @Override
    public boolean isEnabled(){
        return enabled;
    }

    @Override
    public Widget setEnabled(boolean enabled){
        this.enabled=enabled;
        return this;
    }


    
}
